package com.example.harmonys_api.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.harmonys_api.entity.User;
import com.example.harmonys_api.mapper.UserMapper;
import com.example.harmonys_api.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 2251300221陈成权
 * @since 2025-09-30
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {
    @Resource
    UserMapper userMapper;
    public List<User> getAllUser(){
        QueryWrapper<User> qw = new QueryWrapper<>();
        List<User> list1 =userMapper.selectList(qw);
        for (User user:list1){
            System.out.println("UserServiceImpl的getAllUser------"+user.toString());
        }
        return list1;
    }
}
